<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>九如香美食</title>
<link href="<%=basePath %>ui/css/style.css" rel="stylesheet"
	type="text/css" />
<script src="<%=basePath %>ui/js/jquery.js" type="text/javascript"></script>
<script src="<%=basePath %>ui/js/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="<%=basePath %>ui/js/bplayer.js" type="text/javascript"></script>
<script language="javascript">
var index=0;
</script>
</head>
<body>
<center>
	<%@ include file="/common/top.jsp"%>
	<div class="container">
		
		<!--首页滚动大图-->
		<div class="w1000">
			<div class="topvebanner">
				<div id="myjQuery">
					<div id="myjQueryContent">
						<c:forEach var="obj" items="${activityRollList }" varStatus="i">
							<div <c:if test="${!(i.index eq 0) }"> class="smask" </c:if> >
								<a title="${obj.mesName }"
									href="<%=basePath %>message/msgShowDetail/${obj.id}.html"
									target="_blank"><img
									src="<%=webuiPath %>${obj.mesAccessory}"></a>
							</div>
						</c:forEach>
					</div>
					<ul id="myjQueryNav">
					     <c:forEach var="obj" items="${activityRollList }" varStatus="i">
						<li <c:if test="${i.index eq 0 }"> class="current" </c:if> ></li>
						</c:forEach> 
						
					</ul>
				</div>
			</div>
			<div class="messages_l">
				<div class="zhengwu">
					<span>各店分布</span>
					<table border="0" cellpadding="0" cellspacing="0" height="208"
						width="240">
						<tbody>
							<tr>
								<td align="center" height="13" valign="top" width="240"><div
										id="demo" style="overflow:hidden; width:240px; height:210px;">
										<div id="demo1" class="fendian">
											<c:forEach items="${storeList }" var="obj">
												<ul>
													<li><a href="" target="_blank">${obj.dishName }</a></li>
													<li>地址：${obj.dishSource }</li>
													<li>电话：${obj.dishSubtitle }</li>
													<li>公交：${obj.dishSecondname }</li>
													<li><a href="${basePath }dish/map/${obj.porCode}.html?id=${obj.id}" target="_blank">点击查看市内地图</a></li>
												</ul>
											</c:forEach>


										</div>
										<div id="demo2" class="fendian"></div>
									</div>
<script language="javascript"> 
var speed=80 ;
demo2.innerHTML=demo1.innerHTML ;
function Marquee(){ 
if(demo2.offsetTop-demo.scrollTop<=0) 
demo.scrollTop-=demo1.offsetHeight ;
else{ 
demo.scrollTop++ ;
} 
} 
var storeMar=setInterval(Marquee,speed) ;
demo.onmouseover=function() {clearInterval(storeMar);} 
demo.onmouseout=function() {storeMar=setInterval(Marquee,speed);} 
</script>
</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<!--新闻中心、-->
			<div class="messages_r">
				<div class="newlaw">
					<ul class="new_text">
						<c:forEach var="obj" items="${newsList }">
							<li title="${obj.mesName }" style="float: left"><span><fmt:formatDate
										value="${obj.mesWhen}" pattern="yyyy-MM-dd" /></span><a style="color: #fdda7c;overflow: hidden;"
								href="<%=basePath %>message/msgShowDetail/${obj.id}.html" target="_blank"><span style="float: left">${obj.mesName }</span></a></li>
						</c:forEach>
					</ul>
					<ul class="new_pic">
					<div id="flash">
  <script type="text/javascript">
  var imag=new Array();
  var link=new Array();
  var text=new Array();
  var newsArray=${newsArray};
  if(newsArray){
   $(newsArray).each(function(i,v){
  	 imag[i]="<%=webuiPath %>"+v.mesAccessory;
  	 link[i]="${basePath}message/msgShowDetail/"+v.id+".html";
  	 text[i]=v.mesName;
   });
  }
  var pics="", links="", texts="";
  for(var i=0; i<imag.length; i++){
  	pics=pics+("|"+imag[i]);
  	links=links+("|"+link[i]);
  	texts=texts+("|"+text[i]);
  }
  pics=pics.substring(1);
  links=links.substring(1);
  texts=texts.substring(1);
  
AC_FL_RunContent( 'width','240','height','200','codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0',
		'pluginspage','http://www.macromedia.com/go/getflashplayer','allowscriptaccess','sameDomain','quality','high','bgcolor',
		'#ffffff','menu','false','flashvars',
		'pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth=240&borderheight=180&textheight=20','wmode','opaque','src','<%=basePath %>ui/flash/focus','movie','<%=basePath %>ui/flash/focus' ); //end AC code
  </script>
  <noscript>
  <object width="240" height="170" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
    <param value="sameDomain" name="allowScriptAccess" />
    <param value="<%=basePath %>ui/flash/focus.swf" name="movie" />
    <param value="high" name="quality" />
    <param value="#ffffff" name="bgcolor" />
    <param value="false" name="menu" />
    <param value="opaque" name="wmode" />
    <param  value="pics='+pics+'&links='+links+'&texts='+texts+&amp;borderwidth=240&amp;borderheight=170&amp;textheight=20" name="FlashVars" />
    <embed width="240" height="170" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="sameDomain" quality="high" bgcolor="#ffffff" menu="false" flashvars="pics=UploadFile/newsphoto/201206271626504581.jpg|UploadFile/newsphoto/201106121019279714.jpg|UploadFile/newsphoto/201205071130570668.jpg|UploadFile/newsphoto/201204260811360456.jpg|UploadFile/newsphoto/201110180859030730.jpg|UploadFile/newsphoto/201109281116045441.jpg&amp;links=NewsInfoShow.aspx?newsid=74210|NewsInfoShow.aspx?newsid=72951|NewsInfoShow.aspx?newsid=70070|NewsInfoShow.aspx?newsid=69253|NewsInfoShow.aspx?newsid=52850|NewsInfoShow.aspx?newsid=52459&amp;texts=省国资委召开福建省省管国有企业创先...|全省国资系统党建工作座谈会暨厦钨创...|省国资委帮扶周宁出实招|省国资委领导深入福船集团权属厦船重...|省政府国资委召开面向全国公开招聘企...|省政府国资委召开省国资系统党员代表...&amp;borderwidth=240&amp;borderheight=170&amp;textheight=20" wmode="opaque" src="img/flash/focus.swf"></embed>
  </object>
  </noscript>
</div>
					</ul>
				</div>

			</div>
		</div>
		<div class="w1000">
			<div class="weixinweibo">
				<div class="wxwb_right">
					<div class="wxwb_title">用手机扫描二维码加关注，获得最新最火的加盟信息，最好吃的没事等！</div>
					<ul class="wxwb_ewm">
						 <c:forEach var="obj" items="${wxList }">
						  <c:if test="${ !(obj.mesCatagory eq 'qq') }">
						 <li><span><img
								src="<%=webuiPath %>${obj.mesAccessory}" width="120" height="120"/></span> <span>${obj.mesName }</span>
						</li>
						</c:if>
						 </c:forEach>
					</ul>

				</div>
				<div class="wxwb_left">
			<%-- 	 <object type="application/x-shockwave-flash" style="" 
						data="<%=webuiPath %>attached\20150609\swf.swf" 
						width="100%" height="100%" id="movie_player" >
						<param name="allowFullScreen" value="true">
						<param name="allowscriptaccess" value="always">
						<param name="wmode" value="direct">
						<param name="bgcolor" value="#000000">
						<param name="movie"
							value="<%=webuiPath %>${video.mesUrl }">
							
				    </object> --%>
				    <embed  type="application/x-shockwave-flash"
						allowscriptaccess="always" allowfullscreen="true" style="" src="<%=webuiPath %>${video.mesUrl}?d=<%=System.currentTimeMillis() %>" width="100%" height="100%" wmode="transparent" quality="high"
				    >
					<!-- <embed type="application/x-shockwave-flash"
						allowscriptaccess="always" allowfullscreen="true"
						wmode="transparent" quality="high"
						pluginspage="http://get.adobe.com/cn/flashplayer/" height="480"
						width="100%" height="100%" 
						src="http://js.t.sinajs.cn/t5/album/static/swf/video/player.swf?_v48a506f3318b3bcb"
						flashvars="list=http%3A%2F%2Fus.sinaimg.cn%2F0033rSAzjx06T3kRtNAA0104010000220k01.m3u8%3FKID%3Dunistore%2Cvideo%26Expires%3D1434350429%26ssig%3Dy6aVgthH0c&amp;fid=1034:d56d28ce72f7b6f573ac96c5e031ebef&amp;ztshow=&amp;logo=2&amp;uid=2375729493"> -->
				</div>
				<!-- <embed type="application/x-shockwave-flash"
					src="http://player.cntv.cn/standard/cntvplayer130916.swf?v=0.171.5.8.9.6.3.5.0"
					width="270px" height="180px" style="" id="v_player" name="v_player"
					bgcolor="#000000" quality="high" wmode="normal" menu="false"
					allowfullscreen="true" allowscriptaccess="always"
					flashvars="NoDataSwfPath=http://player.cntv.cn/widgets/NoDataVideoPanel.swf&amp;RelativeSwfPath=http://player.cntv.cn/widgets/RelativeVideoPanel.swf&amp;usrOs=Windows&amp;usrBroswer=Chrome:21&amp;screenInfo=1440*900&amp;platform=Win32&amp;isTianRun=true&amp;isShowSmallWindow=true&amp;widgetsConfig=http://js.player.cntv.cn/xml/widgetsConfig/common.xml&amp;languageConfig=&amp;logoImageURL=&amp;logoURL=http://www.cntv.cn/&amp;qmServerPath=http://log.player.cntv.cn/stat.html&amp;qmFrequency=1&amp;adplayerPath=http://player.cntv.cn/adplayer/cntvAdPlayer.swf?v=ad0.171.5.8.4.5.4&amp;pauseAdplayerPath=http://player.cntv.cn/adplayer/cntvPauseAdPlayer.swf?v=ad0.171.5.8.4.5.4&amp;cornerAdplayerPath=http://player.cntv.cn/adplayer/cntvCornerADPlayer.swf?v=ad0.171.5.8.4.5.4&amp;hotmapPath=http://player.cntv.cn/standard/cntvHotmap.swf?v=ad0.171.5.8.4.5.4&amp;tai=news&amp;referrer=http://so.cntv.cn/search.php?qtext=%E4%BB%8A%E6%97%A5%E8%AF%B4%E6%B3%95&amp;type=-1&amp;sid=0000&amp;pid=0003&amp;dynamicDataPath=http://vdn.apps.cntv.cn/api/getHttpVideoInfo.do&amp;isUseDynamicData=true&amp;dynamicFrequency=1.0&amp;isP2pInstall=false&amp;widgetsSwfPath=http://player.cntv.cn/widgets/wg/WidgetButton.swf&amp;widgetsXmlPath=http://js.player.cntv.cn/xml/widgetsPlugXml/chinese.xml&amp;isConviva=true&amp;isAkamaiAnility=true&amp;useP2pMode=true&amp;showRelative=true&amp;relativeListUrl=http://js.player.cntv.cn/xml/relative/News.xml&amp;videoId=vid&amp;videoCenterId=891ab51b859d47bdb6f7c718c5b5a5fb&amp;isAutoPlay=false"> -->
		</div>
	</div>
	<div class="w1000">
		<div class="jimengdian">
			<span class="jimengdian_title"><a
				href="${basePath }dish/list/store.html?porCode=6002&page=1&pageSize=12"
				target="_blank">更多&gt;&gt;</a>各分店门面</span>
			<div id="marquee1" class="marqueeleft">
				<div style="width:8000px;">
					<ul id="marquee1_1">
						<c:forEach var="obj" items="${storePicList }">
							<li><a class="pic"
								href="${basePath }dish/dishShowDetail/${obj.id}.html"
								target="_blank"><img
									src="<%=webuiPath %>${obj.dishAccessory}" height="150"
									width="240"></a>
								<div class="txt">
									<a href="${basePath }dish/dishShowDetail/${obj.id}.html"
										target="_blank">${obj.dishName }</a>
								</div></li>
						</c:forEach>
					</ul>
					<ul id="marquee1_2">
					</ul>
				</div>
			</div>
			<!--marqueeleft end-->
			<script type="text/javascript">
			   
			</script>
		</div>
	</div>
	<div class="w1000">
		<div class="caipin">
			<div class="tab">
				<ul class="menu" id="menutitle">
						<li id="tab_1" class="aaa"><a id="tab_1_a"
						href="javascript:void(0)" onmouseover="tabs('1');">特色菜</a></li>
					<a 
						href="${basePath}dish/list/dish.html?porCode=2003&page=1&pageSize=12"
						target="_blank"
						style="float:right; color:#FFFFFF; line-height:41px;">更多&gt;&gt;</a>
				</ul>
				<div class="tab_b" id="tab_a1" style="display:block;">
					<ul class="meishiname">
						<c:forEach var="obj" items="${dishList}">
							<li title="${obj.dishName }"><a href="${basePath }dish/dishShowDetail/${obj.id}.html" target="_blank"><img src="<%=webuiPath %>${obj.dishAccessory}" /></a><a
								href="<%=basePath %>dish/dishShowDetail/${obj.id}.html"
								target="_blank">${obj.dishName }</a></li>
						</c:forEach>

					</ul>
				</div>
			</div>
			<div class="w1000">
				<div class="huodong">
					<span class="jimengdian_title"><a
						href="${basePath }message/list/general.html?porCode=1103&page=1&pageSize=20"
						target="_blank">更多&gt;&gt;</a>优惠活动</span>
					<ul class="tepic">
						<c:forEach var="obj" items="${activityList }">
							<li title="${obj.mesName }"><a
								href="${basePath}message/msgShowDetail/${obj.id}.html"
								target="_blank"><img width="156" height="93"
									src="<%=webuiPath %>${obj.mesAccessory}"></a> <a
								class="name"
								href="${basePath}message/msgShowDetail/${obj.id}.html"
								target="_blank">${obj.mesName }</a>
									<span>
									<c:choose>
										<c:when test="${fn:length(obj.mesContent)>50 }">${fn:substring(obj.mesContent,0,50) } </c:when>
										<c:otherwise>${obj.mesContent}</c:otherwise>
									</c:choose>
									</span>
									<a href="${basePath}message/msgShowDetail/${obj.id}.html"
										target="_blank">[详情]</a>

								</p></li>
						</c:forEach>
					</ul>
				</div>
			</div>
		</div>
		<!--资料下载-->
	</div>

	</div>
	<!--办税服务-->
	<!--公众参于-->
	</div>
	</div>
	<div class="main-im">
		<div id="open_im" class="open-im">&nbsp;</div>
		<div class="im_main" id="im_main">
			<div id="close_im" class="close-im">
				<a href="javascript:void(0);" title="点击关闭">&nbsp;</a>
			</div>
			<a href="http://wpa.qq.com/msgrd?v=3&uin=${qq.dict_value }&site=qq&menu=yes"
				target="_blank" class="im-qq qq-a" title="在线QQ客服">
				<div class="qq-container"></div>
				<div class="qq-hover-c">
					<img class="img-qq" src="<%=basePath%>ui/images/qq.png">
				</div> <span> QQ在线咨询</span>
			</a>
			<div class="im-tel">
				<div>售前咨询热线</div>
				<div class="tel-num">${pre.dict_value }</div>
				<div>售后咨询热线</div>
				<div class="tel-num">${suf.dict_value }</div>
			</div>
			<div class="im-footer" style="position:relative">
				<div class="weixing-container">
					<div class="weixing-show">
						<div class="weixing-txt">
							${qqinfo.mesName }
						</div>
						<img class="weixing-ma" src="<%=webuiPath%>${qqinfo.mesAccessory}">
						<div class="weixing-sanjiao"></div>
						<div class="weixing-sanjiao-big"></div>
					</div>
				</div>
				<div class="go-top">
					<a href="javascript:;" title="返回顶部"></a>
				</div>
				<div style="clear:both"></div>
			</div>
		</div>
	</div>
	<%@ include file="/common/foot.jsp"%>
	<c:forEach var="obj" items="${moveList }" varStatus="i" >
	<div id="move_${i.index+1}"  style="position:absolute;z-index: 9999;font-size: 12px;" >
			<table cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td>${obj.mesContent}</td>
				</tr>
				<tr>
					<td align="right" valign="top" style="margin-top: 0px">
					<span onclick="javascript:$('#move_${i.index+1}').hide()" style="font-size: 12px;margin-top: 0px;cursor: pointer;">关闭</span>
					</td>
				</tr>
			</table>
			
     </div>
	</c:forEach>
	 
</body>
</html>
<script type="text/javascript">
		
	$(function() {
	 	$('#close_im').bind('click', function() {
			$('#main-im').css("height", "0");
			$('#im_main').hide();
			$('#open_im').show();
		});
		$('#open_im').bind('click', function(e) {
			$('#main-im').css("height", "272");
			$('#im_main').show();
			$(this).hide();
		});
		$('.go-top').bind('click', function() {
			$(window).scrollTop(0);
		});
		$(".weixing-container").bind('mouseenter', function() {
			$('.weixing-show').show();
		})
		$(".weixing-container").bind('mouseleave', function() {
			$('.weixing-show').hide();
		}); 
	});
	//各分店门面无间隙滚动
	  var speed=60;
	   var marquee=document.getElementById("marquee1"),
	   marquee1=document.getElementById("marquee1_1"),  
	   marquee2=document.getElementById("marquee1_2");                   
	   marquee2.innerHTML=marquee1.innerHTML;                                    
	   function Marquee1(){    
	          try{       
			      
	   if(marquee2.offsetWidth-marquee1.scrollLeft<=0)                                       
		   marquee.scrollLeft-=marquee1.offsetWidth;                                      
	   else{                                       
		   marquee.scrollLeft++;                                       
	   }        
	      }catch(e){
		  alert(e);
		  }                            
	   }        
	   var storeQuee=setInterval(Marquee1,speed) ;
	   marquee.onmouseover=function() {clearInterval(storeQuee);} 
	   marquee.onmouseout=function() {storeQuee=setInterval(Marquee1,speed);} 

		//漂浮广告start
		var x = 50, y = 60;
		var xin = true, yin = true;
		var step = 1;
		var delay = 30;
		 var obj = document.getElementById("move_1");
		var itl = setInterval("float()", delay);
		obj.onmouseover = function() {
			clearInterval(itl);
		}
		obj.onmouseout = function() {
			itl = setInterval("float()", delay);
		} 
		 
	function float() {
		var L = T = 0;
		var R = document.body.clientWidth - obj.offsetWidth;
		var B = document.body.clientHeight - obj.offsetHeight;
		obj.style.left = x + document.body.scrollLeft;
		obj.style.top = y + document.body.scrollTop;
		x = x + step * (xin ? 1 : -1);
		if (x < L) {
			xin = true;
			x = L;
		}
		if (x > R) {
			xin = false;
			x = R;
		}
		y = y + step * (yin ? 1 : -1)
		if (y < T) {
			yin = true;
			y = T;
		}
		if (y > B) {
			yin = false;
			y = B;
		}
	}
</script>
